#!/bin/bash

tmp=$(mktemp)

if [ -z $1 ]
then
	echo "[*] $(basename $0) 1.pdf 2.pdf 3.pdf ... n.pdf"
	exit 0
fi

for i in $@
do
	input="$input $i "
done

pdftk $input cat output $tmp
mv -v "$tmp" "joined_$(basename $tmp)"

